package fr.ordre66.vlcs.client;

import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;

//v4l2:///dev/video0
public class Main {
	public static void main(String[] args) throws InterruptedException,
			InvocationTargetException {
		if (args.length < 1) {
			System.out.println("Specify a single media URL");
			System.exit(1);
		}

		String[] vlcArgs = (args.length == 1) ? new String[] {} : Arrays
				.copyOfRange(args, 1, args.length);

		new Player(args[0], vlcArgs);

		// Application will not exit since the UI thread is running
	}
	
}
